package cn.edu.uestc.smgt.service;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.uestc.smgt.dao.BuzhuTempMapper;
import cn.edu.uestc.smgt.pojo.BuzhuTemp;

@Service
public class BuzhuTempService {
	@Autowired
	private BuzhuTempMapper buzhuTempMapper;

	public int addWithMap(HashMap map) {
		return buzhuTempMapper.insertSelectiveByMap(map);
	}

	public List<BuzhuTemp> findAllBuzhuTemp() {
		return buzhuTempMapper.selectAll();
	}

	public Object findAllBuzhuTempWithUnitId(String unitId) {
		// TODO Auto-generated method stub
		return buzhuTempMapper.selectAllByUnitId(unitId);
	}
}
